<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 19-3-5
 * Time: 下午12:02
 */

namespace common\models;


/**
 * Class EdiviOrderYpbl
 * @package common\models
 *
 * @property EdiviCreditOrderUsersPics[] $ediviCreditOrderUsersPics
 * @property EdiviCreditOrder $ediviCreditOrder
 */
class EdiviOrderYpbl extends \common\models\base\EdiviOrderYpbl
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getEdiviCreditOrderUsersPics()
    {
        return $this->hasMany(EdiviCreditOrderUsersPics::className(), ['edivi_yp_id' => 'id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getEdiviCreditOrder()
    {
        return $this->hasOne(EdiviCreditOrder::className(), ['id' => 'edivi_credit_order_id']);
    }
}